import {createElement} from "react";
import {Input, Select} from "antd";
import { EnumStatus } from "../../../../../constants";

export const filterItems = [
    {
        title: "登录地址",
        name: "ipaddr",
        gridSpan: 2,
        component: createElement(Input),
    },
    {
        title: "用户名",
        name: "userName",
        gridSpan: 2,
        component: createElement(Input),
    },
    {
        title: "状态",
        name: "status",
        gridSpan: 1,
        component: createElement(Select, {style:{width: "100%"}, allowClear: true}, EnumStatus.map(({label,value}) => createElement(
            Select.Option,
            { key: value, value,  children: label}
        )))
    }
];

